import request from '@/utils/request'

// 查询BMS信息列表
export function listdeviceBmsAllInfo(query) {
  return request({
    url: '/business/deviceBmsAllInfo/list',
    method: 'get',
    params: query
  })
}

// 查询BMS信息详细
export function getdeviceBmsAllInfo(id) {
  return request({
    url: '/business/deviceBmsAllInfo/' + id,
    method: 'get'
  })
}

// 新增BMS信息
export function adddeviceBmsAllInfo(data) {
  return request({
    url: '/business/deviceBmsAllInfo',
    method: 'post',
    data: data
  })
}

// 修改BMS信息
export function updatedeviceBmsAllInfo(data) {
  return request({
    url: '/business/deviceBmsAllInfo',
    method: 'put',
    data: data
  })
}

// 删除BMS信息
export function deldeviceBmsAllInfo(id) {
  return request({
    url: '/business/deviceBmsAllInfo/' + id,
    method: 'delete'
  })
}

// 导出BMS信息
export function exportdeviceBmsAllInfo(query) {
  return request({
    url: '/business/deviceBmsAllInfo/export',
    method: 'get',
    params: query
  })
}